from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker, declarative_base

from Config.database_conf import username, password, host, database

SQLALCHEMY_DATABASE_URL = ("postgresql://" + username + ':' + password
                           + '@' + host + '/' + database)

engine = create_engine(SQLALCHEMY_DATABASE_URL)

Base = declarative_base()

# Post_User = Base.classes.post_user
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
